package org.hxzon.tapestry5.components;

import org.apache.tapestry5.MarkupWriter;
import org.hxzon.tapestry5.components.base.AbstractTextFieldEx;

//copy from TextField
public class TextFieldEx extends AbstractTextFieldEx {

    protected void writeFieldTag(MarkupWriter writer, String value) {
        writer.element("input",

        "type", "text",

        "name", getControlName(),

        "id", getClientId(),

        "value", value,

        "size", getWidth());
    }

    final void afterRender(MarkupWriter writer) {
        writer.end(); // input
    }
}
